package design_pattern.abstract_factory;

public class FactoryProducer {
    public static AbstractFactory getFactory(String factoryName){
        if(factoryName.equalsIgnoreCase("ColorFactory")){
            return new ColorFactory();
        }else if(factoryName.equalsIgnoreCase("shapeFactory")){
            return new ShapeFactory();
        }
        return null;
    }

}
